<?=$this->messages() ?>
<?=$this->itemId($this->model_type->getID()) ?>
<?=$this->reloadFlag(true) ?>
<table>
    <tr>
        <td class="title">Caption:</td>
        <td class="input_field">
            <input type="text" name="caption" id="caption" value="<?=$this->model_type->getCaption(); ?>" />
        </td>
    </tr>
    <tr>
        <td class="title">TFTP Filename:</td>
        <td class="input_field">
            <input type="text" name="type" id="tftp_filename" value="<?=$this->model_type->getTFTPFilename(); ?>" />
        </td>
    </tr>
    <tr>
        <td class="title">Exts:</td>
        <td class="input_field">
<?
    if ($this->is_add)
    {
?>
            <select name="exts" id="exts">
<?
        for ($i = 1; $i <= 6; $i++)
        {
?>
                <option value="<?=$i ?>" <? if ($this->spa_type_data['exts'] == $i) echo " selected "; ?> ><?=$i ?></option>
<?
        };
?>
            </select>
<?
        }
        else
        {
?>
            <input type="text" id="exts" disabled value="<?=$this->model_type->getExts(); ?>" />
<?
        };
?>
        </td>
    </tr>
    <tr>
        <td class="title">Firmware:</td>
        <td class="input_field">
            <select name="firmware_id" id="firmware_id">
               <option value="-1">No firmware</option>
<?
        foreach ($this->firmwares as $model_firmware)
        {
?>
                <option value="<?=$model_firmware->getID() ?>" <? if ($this->model_type->getModelFirmware()->getID() == $model_firmware->getID()) echo " selected "; ?>><?=$model_firmware->getCaption() ?> [Version: <?=$model_firmware->getVersion() ?>]</option>
<?
        };
?>
            </select>
        </td>
    </tr>
</table>
<?=$this->buttons(); ?>

